
# 第二阶段2：第二阶段第2个执行的脚本，主要为数据处理，且执行顺序处于【v-fund二期2-1.sh】后

# 1 付款单数据( 付款单解释之后)
# 编写者 张传鹏
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/sheet/paySheet/data -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456"}'

# 2 审批中付款单数据处理( 付款单解释之后)
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/sheet/paySheet/process/data -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456"}'

# 3 打印模板
# 编写者 徐俊杰
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/module/fund -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","platform":"web","xbbCode":"123456"}'

# 4 【增量处理】：新增付款计划的坏账、开票金额脚本，可以提前刷数据,需要做增量刷
# 编写者 陈山
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/purchasePayplan/scriptPayPlanData -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","businessType":"801","startTime":1590750000}'

# 5 【增量处理】：新增采购合同的坏账金额、实付金额、未付金额、付款比例、开票金额、未开票金额脚本，可以提前刷数据,需要做增量刷
# 编写者 陈山
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/purchasePayplan/scriptPurchaseData -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","businessType":"801","noInit":1,"startTime":1590750000}'

# 6 新增采购合同的实付金额、未付金额、付款比例脚本
# 编写者 陈山
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/purchasePayplan/scriptPurchaseData -X POST -H 'Content-type: application/json' -d '{"xbbCode":"123456","businessType":"801","noInit":0}'

# 7 付款单负责人
# 编写者 陈山 不要提前刷
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/payPlanSheet/ownerId -X POST -H 'Content-type: application/json' -d '{"xbbCode":123456,"corpid": "1","businessType":802}'

# 8 回款单负责人
# 编写者 陈山 不要提前刷
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/paymentSheet/ownerId -X POST -H 'Content-type: application/json' -d '{"xbbCode":123456,"corpid": "1","businessType":702}'

# 9 【增量处理】审批中回款单数据处理(资金账户ID)
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/process/paymentSheet/initProcess/account -X POST -H 'Content-type: application/json' -d '{"addTime":1590750000,"xbbCode":123456,"corpid": "1","greaterOrLess":1}'

# 10 【增量处理】：生成资金流水数据
# 编写者 周伟强
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/init/fund/log -X POST -H 'Content-type: application/json' -d '{"addTime":1590750000,"xbbCode":123456,"corpid": "1","greaterOrLess":1}'

# 11 资金账户余额
# 编写者 周伟强
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/init/fund/account/amount -X POST -H 'Content-type: application/json' -d '{"addTime":1590750000,"xbbCode":123456,"corpid": "1","greaterOrLess":1}'

# 12 审批节点回/付款资金账户，关联供应商、关联采购合同处理
# 编写者 周伟强
# 回款资金账户
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/process/account/initProcessNode -X POST -H 'Content-type: application/json' -d '{"userId":"1","xbbCode":123456,"corpid": "1","businessType":702}'
# 付款资金账户，关联供应商、关联采购合同不可编辑
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/process/account/initProcessNode -X POST -H 'Content-type: application/json' -d '{"userId":"1","xbbCode":123456,"corpid": "1","businessType":802}'

#13 退货退款审批中存在回款单的数据添加资金账户字段
# 编写者 周伟强
curl  http://pt2jobs.xbongbong.com.cn/pro/v1/script/fund/process/refund/paymentSheet/initProcess/account -X POST -H 'Content-type: application/json' -d '{"addTime":1590750000,"xbbCode":123456,"corpid": "1","greaterOrLess":1}'

#14 审批合同中的回款单添加付款账户
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/contract/scriptContractProcessData -X POST -H 'Content-type: application/json' -d '{"frontDev": "1","xbbCode": 123456,"businessType":801}'

